package com.miyi.core;

import javax.servlet.http.HttpServletResponse;

public class FatalException extends RuntimeException{

	    private static final long serialVersionUID = 1L;

	    private int statusCode = HttpServletResponse.SC_OK;
	    private String body = null;

	    FatalException() {
	        super();
	    }

	    FatalException(int statusCode) {
	        this.statusCode = statusCode;
	    }

	    FatalException(String body) {
	        this.body = body;
	    }

	    FatalException(int statusCode, String body) {
	        this.statusCode = statusCode;
	        this.body = body;
	    }

	    /**
	     * @return the statusCode
	     */
	    public int getStatusCode() {
	        return statusCode;
	    }


	    /**
	     * @return the body
	     */
	    public String getBody() {
	        return body;
	    }


}
